package com.spc.service;

import com.spc.mapper.ProductMapper;
import com.spc.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImp implements IProductService {

    @Autowired
    private ProductMapper productMapper;

    public Product getProduct(Integer id) {

        return productMapper.selectByPrimaryKey(id);
    }
}
